package com.tutu.commons.clients;

import com.tutu.commons.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Program: b2c-cloud-store
 * @Description: 调用商品服务的接口
 * @Author: JK.TuTu
 * @Version: 1.0
 * @Create: 2022-12-21 09:32
 **/
@FeignClient("product-service")
public interface ProductClient {


    /**
     * 根据商品id查询商品信息
     * @param productId 商品Id
     * @return 返回结果集
     */
    @GetMapping("/product/detail")
    R getProductId(@RequestParam(value = "productId",required = true) Integer productId);
}
